package com.rdtravel.converters;

import com.rdtravel.entities.Destination;

import org.springframework.core.convert.converter.Converter;

public class DestinationToStringConverter implements Converter<Destination,String> {

	@Override
	public String convert(Destination destination) {
		if (destination==null) {
			return null;
		}
		return destination.getName();
	}

}
